package com.chaihu.jpaDemo.utils;

import com.chaihu.jpaDemo.modules.system.entity.OperateLog;

/**
 * 线程变量
 */
public class ThreadLocalUtils {

    private static final ThreadLocal<OperateLog> SYS_OPERATE_LOG_THREAD_LOCAL = new ThreadLocal<OperateLog>();

    private static final ThreadLocal<Long> TIME_TREAD_LOCAL = new ThreadLocal<Long>();

    public static ThreadLocal<OperateLog> getOperateLogThreadLocal() {
        return SYS_OPERATE_LOG_THREAD_LOCAL;
    }

    public static ThreadLocal<Long> getTimeTreadLocal() {
        return TIME_TREAD_LOCAL;
    }
}
